package messages;


/**
 * RegistrationFailed message
 * 
 * This message is sent by the server in reply to a unsuccessful
 * register request.
 */
public class RegistrationFailedMessage extends Message {
	private static final long serialVersionUID = 1L;
	
	public RegistrationFailedMessage(String login) {
		super();
		
		this.login = login;
	}
	
	public String getLogin() {
		return this.login;
	}
	
	@Override
	public String toString() {
		return super.toString() + " RegistrationFailed (" + this.login + ")";
	}
	
	private String login;	 // Requested login
}
